home *** CD-ROM | disk | FTP | other *** search
- #include <windows.h>
- #include <stdlib.h>
- #include <stdio.h>
-
- #include "timer.h"
-
- int TIMER::OutOfTimers() { return TRUE; }
-
- #include "common.c"
-
- void TIMER::InitTimerPackage(HANDLE Instance)
- {
- TD.CallBack = MakeProcInstance(
- (FARPROC)&TimerCallBack, Instance);
- }
-
- TIMER::TIMER(int EventId)
- {
- InitTimer(this, EventId);
- }
-
- TIMER::~TIMER()
- {
- DeleteTimer(this);
- }
-
- int TIMER::Start(ULONG Interval)
- {
- return SetInterval(this, Interval);
- }
-
- void TIMER::Stop()
- {
- SetInterval(this, 0);
- }
-
-